import request from '@/utils/request'

// 查询生产退料列表
export function listProductionReturn(query) {
  return request({
    url: '/system/ProductionReturn/list',
    method: 'get',
    params: query
  })
}

// 查询领料详细
export function getProductionReturnList(params) {
  return request({
    url: '/system/ProductionReturn/query',
    method: 'get',
    params: {
      id: params.id,
    }
  })
}


// 查询生产退料详细
export function getProductionReturn(id) {
  return request({
    url: '/system/ProductionReturn/' + id,
    method: 'get'
  })
}

// 新增生产退料
export function addProductionReturn(data) {
  return request({
    url: '/system/ProductionReturn',
    method: 'post',
    data: data
  })
}

// 修改生产退料
export function updateProductionReturn(data) {
  return request({
    url: '/system/ProductionReturn',
    method: 'put',
    data: data
  })
}

// 删除生产退料
export function delProductionReturn(id) {
  return request({
    url: '/system/ProductionReturn/' + id,
    method: 'delete'
  })
}
